package com.tuanzi.loan.web.configuration.asyn;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import lombok.Data;

@Data
@Component
@ConfigurationProperties(prefix = "spring.task.executor")
public class TaskExecutorProperties {

	private Integer corePoolSize = 30;

	private Integer maxPoolSize = 30;

	private Integer keepAliveSeconds = 20;

	private Boolean waitForTasksToCompleteOnShutdown = true;;

	private Integer queueCapacity = Integer.MAX_VALUE;

	private String threadNamePrefix = "Task Executor";

}
